package com.ruoyi.official.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新闻对象 official_news
 *
 * @author yuanqiji
 * @date 2025-03-21
 */
public class OfficialNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 中文标题 */
    @Excel(name = "中文标题")
    private String titleZh;

    /** 英文设标题 */
    @Excel(name = "英文设标题")
    private String titleEn;

    /** 中文详情名称 */
    @Excel(name = "中文详情名称")
    private String detailsZh;

    /** 英文详情名称 */
    @Excel(name = "英文详情名称")
    private String detailsEn;

    /** 访问次数 */
    @Excel(name = "访问次数")
    private Integer visitNumber;

    /** 新闻类型 */
    @Excel(name = "新闻类型")
    private String type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitleZh(String titleZh) 
    {
        this.titleZh = titleZh;
    }

    public String getTitleZh() 
    {
        return titleZh;
    }

    public void setTitleEn(String titleEn) 
    {
        this.titleEn = titleEn;
    }

    public String getTitleEn() 
    {
        return titleEn;
    }

    public void setDetailsZh(String detailsZh) 
    {
        this.detailsZh = detailsZh;
    }

    public String getDetailsZh() 
    {
        return detailsZh;
    }

    public void setDetailsEn(String detailsEn) 
    {
        this.detailsEn = detailsEn;
    }

    public String getDetailsEn() 
    {
        return detailsEn;
    }

    public void setVisitNumber(Integer visitNumber) 
    {
        this.visitNumber = visitNumber;
    }

    public Integer getVisitNumber() 
    {
        return visitNumber;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("titleZh", getTitleZh())
            .append("titleEn", getTitleEn())
            .append("detailsZh", getDetailsZh())
            .append("detailsEn", getDetailsEn())
            .append("visitNumber", getVisitNumber())
            .append("type", getType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
